import service from '@/utils/request'

export const usePatientMoneyApi = (id: Number) => {
	return service.get('/sys/patientmoney/' + id)
}

export const usePatientMoneySubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/patientmoney', dataForm)
	} else {
		return service.post('/sys/patientmoney/save', dataForm)
	}
}

export const usePatientMoneyListApi = (dataForm: any) => {
	return service.post('/sys/patientmoney/list', dataForm)
}
